# -*- coding: utf-8 -*
'''
    Created by XiaoInk at 2021/10/08 22:52:01
    Gitee: https://gitee.com/XiaoInk
'''

import os
import colorlog

handler = colorlog.StreamHandler()
handler.setFormatter(
    colorlog.ColoredFormatter(
        '%(log_color)s%(asctime)s - %(levelname)s - %(filename)s:%(lineno)d - %(message)s', datefmt='%Y-%m-%d %H:%M:%S'
    )
)

logging = colorlog.getLogger()
logging.addHandler(handler)
logging.setLevel(os.getenv('LOGLEVEL', 'INFO'))

if __name__ == '__main__':
    pass
